package com.yc.meeting_attendance.net;


import com.yc.meeting_attendance.entity.AttendanceResutl;
import com.yc.meeting_attendance.entity.ImageResutl;
import com.yc.meeting_attendance.entity.Resutl;
import com.yc.meeting_attendance.entity.UploadResutl;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by sunhellc on 16/6/13.
 */
public interface Service {
    @GET("/app/meeting/list")
    Observable<AttendanceResutl> Getmeeting(@Query("termCode") String termCode, @Query("time") String time);
//    @GET("/app/meeting/rule")
//    Observable<RulesResutl> GetRule();
    @FormUrlEncoded
    @POST("/app/meeting/update")
    Observable<Resutl> upload(@Field("meetcheck") String json);

    @GET("/SysAppinfo/up/1")
    Observable<UploadResutl> uploadApk();

    @FormUrlEncoded
    @POST("/app/images/UploadImageString")
    Observable<ImageResutl> UploadImageString(@Field("imageTitle") String imageTitle, @Field("imageIntro") String imageIntro, @Field("actId") String actId, @Field("userId") String userid);
}
